package com.wench.design.principles.demeter;

/**
 * @author wench
 */
public class DemeterMain {

    public static void main(String[] args) {
        Agent agent = new Agent();
        Star fiona = new Star("Fiona");
        agent.setStar(fiona);
        Fans wench = new Fans("Wench");
        agent.setFans(wench);
        Company company = new Company("Sun star");
        agent.setCompany(company);
        agent.meeting();
        agent.business();
    }
}
